package Applets;
import java.awt.*;
import java.applet.*;
import java.awt.event.*;

public class MouseMaze extends Applet 
{
  // Draw a maze
  // Author: Samuel N. Kamin, June 1, 1996

  public void paint (Graphics g) 
  {
    int size = 50;
    g.drawLine(1*size,1*size,4*size,1*size);  // top of maze
    g.drawLine(1*size,1*size,1*size,2*size);  // left side
    g.drawLine(1*size,3*size,1*size,4*size);
    g.drawLine(1*size,4*size,5*size,4*size);  // bottom
    g.drawLine(5*size,1*size,5*size,4*size);  // right side
    g.drawLine(2*size,2*size,2*size,4*size);  // various walls
    g.drawLine(3*size,2*size,3*size,3*size);  // various walls
    g.drawLine(4*size,3*size,4*size,4*size);  // various walls
    g.drawLine(4*size,2*size,5*size,2*size);  // various walls
    Image mouse = getImage(getDocumentBase(), "images/mouse.gif");
    g.drawImage(mouse, 5, (int)(2.5*size), this);
  }
}
